package com.ostrich.cloud.ostrichManagerWeb.client;

import com.ostrich.cloud.common.result.Result;
import com.ostrich.cloud.ostrichGoodsSercice.model.param.AddSecKillParam;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;

@FeignClient(contextId = "seckillManagerClient",name = "ostrichManagerWeb")
@Api("用户管理相关接口")
public interface SeckillManagerClient {
    @PostMapping("createSeckill")
    Result createSeckill(@RequestBody @Valid AddSecKillParam param) throws Exception;

    @GetMapping("getSecKill")
    Result getSecKill(@RequestParam("status") String status);

}
